package com.tanhua.dubbo.api.mongo;


import com.mongodb.client.result.UpdateResult;
import com.tanhua.domain.mongo.*;

import java.util.List;

public interface QuestionnaireApi {
    //查询问卷类型
    List<Questionnaire> queryQuestionnaire();
    //查询用户是否答过题
    UserReport queryIsLock(Long userId, String wid);

    List<Questions>  queryQuestions(String id);

    List<Options> queryOptions(String qid);

    Integer queryScore(String optionId);

    Questions queryQuestion(String questionId);

    List<String> queryReport();

    UserReport saveUserReport(Long userId, String wid, String report);

    Report queryResults(String id);

    String findQuestionnaireId(String questionId);

    UserReport queryUserResults(String id);

    Questionnaire queryQuestionnaireType(String wid);


}
